package com.net.showcase.builder;

import com.net.j8583.Define8583Bank;
import com.net.j8583.Protocol8583BocPay;
import com.net.j8583.Protocol8583BocRefund;

import java.util.HashMap;
import java.util.Map;

/**
 * Date: 14-2-10
 * Time: 14:41
 */
public class TransferTester2 {
    private static final Define8583Bank DEFINE_8583_BANK = new Define8583Bank();
    public static void main(String[] args) throws Exception {
        HashMap hashMap = new HashMap();
        hashMap.put("cardNo","4096665528659482");
        Protocol8583BocRefund protocol = new Protocol8583BocRefund(hashMap,DEFINE_8583_BANK);
        byte[] result = protocol.makeRequestContent();
        Map resultMap = protocol.makeResponseObject(result);
        System.out.println("resultMap = " + resultMap);
//        String cardNo = protocol.getFieldInfo(2).getRespDecodeValue();
//        System.out.println("cardNo = " + cardNo);
    }
}
